﻿using Microsoft.EntityFrameworkCore;
using Week3_1_Entity;

namespace Week3_1_Repository
{
    public class ODBContext : DbContext
    {
       /// <summary>
       /// 构造函数 11
       /// </summary>
       /// <param name="options"></param>
        public ODBContext(DbContextOptions<ODBContext> options) : base(options)
        {
        }
        //映射
        public DbSet<Goods> Goods {  get; set; }//商品
        public DbSet<Address> Address {  get; set; }//收货地址
        public DbSet<UserInfo> UserInfo {  get; set; }//用户
        public DbSet<Order> Order {  get; set; }//订单
        public DbSet<OrderGoods> OrderGoods {  get; set; }//订单详细
        public DbSet<SKU> SKU {  get; set; }//
        public DbSet<GoodsSpec> GoodsSpec {  get; set; }//
        public DbSet<GoodsSpecType> GoodsSpecType {  get; set; }//
        public DbSet<GoodsSpecGuan> GoodsSpecGuan {  get; set; }//










    }
}
